//
//  HJCodeCollectionCell.m
//  Sneakers
//
//  Created by 胡光健 on 2017/10/12.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "HJCodeCollectionCell.h"

@implementation HJCodeCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (IBAction)codeBtn:(id)sender {
    if (self.codeBtnBlock) {
        self.codeBtnBlock(sender);
    }
}
-(void)setModel:(defaultSizeModel *)model {
    _model =model;
    [self.codeBtn setTitle:model.size_num forState:UIControlStateNormal];
    if ([model.check isEqual:@1]) {
        [self.codeBtn setTitleColor:HJColorRGB(255) forState:UIControlStateNormal];
        [self.codeBtn setBackgroundColor:HJColorRGB(127)];
    }else {
        [self.codeBtn setTitleColor:HJColorRGB(135) forState:UIControlStateNormal];
        [self.codeBtn setBackgroundColor:HJColorRGB(250)];
    }
}
@end
